package com.atguigu.cloud.service;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: interface
 * @Create: 2025/7/29 - 下午3:47
 */
public interface AccountService {

    /**
     * 扣减账户余额
     * @param userId 用户id
     * @param money 本次消费金额
     */
    int decrease(@Param("userId") Long userId, @Param("money") Long money);

}
